package com.bjpowernode.service;

import com.bjpowernode.model.BidInfo;
import com.bjpowernode.model.LoanInfo;
import com.bjpowernode.model.ext.BidLoanInfo;

import java.math.BigDecimal;
import java.util.List;

public interface LoanInfoService {

    /**
     * 历史年化收益率
     * @return
     */
    BigDecimal queryHistoryAvgTate();

    /**
     * 产品分页查询
     */
    List<LoanInfo> queryLoanPageByProductType(Integer productType,
                                              Integer pageNo,
                                              Integer pageSize);

    /**
     * 计算总记录数
     */
    int queryRecordNumByProductType(Integer productType);

    /**
     * 根据主键查询单个的loanInfo
     */

    LoanInfo queryLoanInfoByIb(Integer loanId);


}
